#ifndef __cmdinnercreateuser_h__
#define __cmdinnercreateuser_h__

#include "../maindef.h"
#include "CTKeyValue.h"
#include "CTAsyncCmd.h"
#include "CTSizeString.h"
#include "commclass.h"

class CMainCtrl;
class CCmdInnerCreateUser : public CTLib::CTAsyncCmd
{
public:
    CCmdInnerCreateUser() : _bHasInitUser(false), _bHasCreateLogin(false)
    {
        _uiGID = 0;
        _szUserToken.Set("");
    }

    virtual int Do(void* pData);
    virtual int LogicDo(int iRet);
    virtual int AnsClients(int iRet);

    CMainCtrl* pstMainCtrl;
    CEnpNetHead stEnpHead;

    bool _bHasInitUser;
    bool _bHasCreateLogin;

    unsigned int _uiGID;

    CTLib::CTKeyValue _stPara;
    CTLib::CTSizeString<102400> _szHttpStr;
    CTLib::CTSizeString<USER_TOKEN_LEN> _szUserToken;
};

#endif // __cmdinnercreateuser_h__

